home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / book / Smakefile < prev    next >
Encoding:
Makefile  |  1997-06-25  |  2.4 KB  |  100 lines

  1. # Makefile for book programs
  2.  
  3.  
  4. # $Id: Smakefile 1.3 1997/06/25 19:16:25 StefanZ Exp StefanZ $
  5.  
  6. ##### MACROS #####
  7.  
  8. INCDIR = /include
  9. GL_LIB = MesaGL.LIB
  10. GLU_LIB = MesaGLU.LIB
  11. TK_LIB = Mesatk.LIB
  12. AUX_LIB = Mesaaux.LIB
  13.  
  14. TMP_FILE = T:MesaTMP_SCOPTS
  15.  
  16. # Only for AMIWIN
  17. XLIBS = X11.LIB
  18. XDIR = x11:sasc
  19. NET_INCLUDE = netinclude:
  20. NET_LIB = netinclude:/netlib/net.lib
  21.  
  22. AMIWINGL_LIBS = lib lib:sc.lib+lib:scm881.lib+lib:scmieee.lib+$(XDIR)/lib/$(XLIBS)+/lib/$(AUX_LIB)+/lib/$(TK_LIB)+/lib/$(GLU_LIB)+/lib/$(GL_LIB)
  23.  
  24. AMIGAGL_LIBS =  lib lib:sc.lib+/lib/$(AUX_LIB)+/lib/$(TK_LIB)+/lib/$(GLU_LIB)
  25.  
  26.  
  27. # Removed accpersp and dof 
  28. # since problem with near/far variables being confused with SAS/C internal data types.
  29.  
  30. #accanti
  31. P1=  accnot accum aim alpha alpha3D \
  32.     anti antiindex antipindex antipoint antipoly \
  33.     bezcurve bezmesh bezsurf checker checker2 \
  34.     chess clip colormat cone cube curve \
  35.     depthcue disk dofnot double drawf \
  36.     feedback fog fogindex font light linelist \
  37.     lines list list2
  38.  
  39. P2= maplight material mipmap \
  40.     model movelight nurbs pickdepth pickline \
  41.     picksquare plane planet planetup polys \
  42.     robot sccolorlight scene scenebamb sceneflat \
  43.     select smooth sphere stencil stroke \
  44.     surface tea teaambient teapots texgen texturesurf
  45.  
  46. PROGS = $(P1) $(P2) simple xfont
  47.  
  48. #Missing from amiga version:simple xfont
  49. AMIGAPROGS = $(P1) $(P2)
  50.  
  51. CC = sc
  52.  
  53. AMIWINSCFLAGS = idir=$(INCDIR) idir=$(XDIR)/include data=far idlen=63 \
  54.              nostkchk IGN=ALL optimize math=68882 cpu=68040 define=AMIWIN
  55.  
  56. AMIGASCFLAGS = idir=$(INCDIR) data=far idlen=63 with=/amiga/SCOPTIONS\
  57.              IGN=ALL define=AMIGA
  58.  
  59.  
  60. ##### TARGETS ######
  61.  
  62. default: 
  63.     @echo "specify: smake <target>"
  64.     @echo "Where <targets> is one of"
  65.     @echo "       amiga   - Compiles using link library"
  66.     @echo "       library - Compiles using standard library (still beta)"
  67.     @echo "       targets - Compilations for AMIWIN"
  68.     smake amiga
  69.  
  70. clean:
  71.     -delete *.o *.lnk *.info
  72.  
  73. realclean: 
  74.     -delete $(P1)
  75.     -delete $(P2)
  76.     -delete xfont simple
  77.     -delete *.o *.lnk *.info
  78.  
  79. amiga: AmigaLIB $(AMIGAPROGS) DeleteTMP
  80.  
  81. library: AmigaLibrary $(AMIGAPROGS) DeleteTMP
  82.  
  83. targets: AMIWIN $(PROGS) DeleteTMP
  84.  
  85.  
  86. AmigaLIB:
  87.     @echo >$(TMP_FILE) "$(AMIGASCFLAGS) define=AMIGALIB $(AMIGAGL_LIBS)+/lib/$(GL_LIB)"
  88.  
  89. AmigaLibrary:
  90.     @echo >$(TMP_FILE) "$(AMIGASCFLAGS) $(AMIGAGL_LIBS)"
  91.  
  92. AMIWIN:
  93.     @echo >$(TMP_FILE) "$(AMIWINSCFLAGS) $(AMIWINGL_LIBS)"
  94.  
  95. DeleteTMP:
  96.     @delete $(TMP_FILE)
  97.  
  98. $(PROGS):
  99.     $(CC) WITH=$(TMP_File) link $>.c
  100.